<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>vue常用的属性</title>
    <script src="js/vue.js"></script>
</head>

<body>
    <div id="app" id="d1">
        <h1 ref="title">aaa</h1>
        <ul>
            <li></li>
        </ul>
    </div>
    <script>
        var vm = new Vue({
            el: "#app",
            data: {
                msg: "hello world"
            },
            methods: {
                add() {
                    console.log("aaa");
                }
            },
        });

    // vm.$data.msg
    // vm.msg  
    // vm.$options.add()
    // vm.add();

    // vm.$el.style.color="#f00";
    // vm.$refs.title
    
    </script>
</body>

</html>